import request from "./index.js";

// 路线地图 https://travel.daoziji.com/plan/proposalItinerary/scenic/history/mapLine
export function historyMapLine(data) {
    return request("plan/proposalItinerary/scenic/history/mapLine", data, "GET");
}

// 签到 https://travel.daoziji.com/plan/proposalItinerary/scenic/history/sign
export function historySign(data) {
    return request(
        "plan/proposalItinerary/scenic/history/sign",
        data,
        "POST",
        true
    );
}

// // 任务列表 https://travel.daoziji.com/plan/proposalItinerary/scenic/history/findTask
// export function historyFindTask(data) {
//   return request("plan/proposalItinerary/scenic/history/findTask", data, "GET");
// }
// 学一学 https://travel.daoziji.com/plan/scenic/scenicDetail
export function scenicDetail(data) {
    return request("plan/scenic/scenicDetail", data, "GET");
}

// 精彩时刻 https://travel.daoziji.com/plan/highlightMoment/newlyHighlightMoment
export function newlyHighlightMoment(data) {
    return request("plan/highlightMoment/newlyHighlightMoment", data, "POST");
}

// 用户做题 https://travel.daoziji.com/plan/proposalItinerary/scenic/history/doTask
export function historyDoTask(data) {
    return request("plan/proposalItinerary/scenic/history/doTask", data, "GET");
}

// 任务列表 https://travel.daoziji.com/user/proposalItinerary/scenic/history/findOneTask
export function historyFindOneTask(data) {
    return request(
        "plan/proposalItinerary/scenic/history/findOneTask",
        data,
        "GET",
        true
    );
}

// 用户做题正确性 https://travel.daoziji.com/user/proposalItinerary/scenic/history/doTaskBoolean
export function historyDoTaskBoolean(data) {
    return request(
        "plan/proposalItinerary/scenic/history/doTaskBoolean",
        data,
        "GET"
    );
}

// 新增行程报告 https://travel.daoziji.com/plan/apperception/newlyApperception
export function newlyApperception(data) {
    return request("plan/apperception/newlyApperception", data, "POST");
}

export function newlyInspiration(data) {
    return request("plan/apperception/newlyInspiration", data, "POST");
}

// 景点通关 https://travel.daoziji.com/plan/proposalItinerary/scenic/history/scenicClearance
export function historyScenicClearance(data) {
    return request(
        "plan/proposalItinerary/scenic/history/scenicClearance",
        data,
        "GET"
    );
}

// 更新索引  https://travel.daoziji.com/plan/proposalItinerary/scenic/history/saveEventIndex
export function historySaveEventIndex(data) {
    return request(
        "plan/proposalItinerary/scenic/history/saveEventIndex",
        data,
        "GET"
    );
}

//获取事件索引  https://travel.daoziji.com/plan/proposalItinerary/scenic/history/getEventIndex
export function historyGetEventIndex(data) {
    return request(
        "plan/proposalItinerary/scenic/history/getEventIndex",
        data,
        "GET"
    );
}

/**获取地区 */
export function findRegions(data) {
    return request("base/region/findRegions", data, "GET");
}

/**获取景点类别 */
export function findDictTree(data) {
    return request("base/dict/findDictTree", data, "GET");
}

/**获取景点列表 */
export function scenicPage(data) {
    return request("plan/scenic/scenicPage", data, "GET");
}

/**获取路线地图列表 */
export function mapLineList(data) {
    return request(
        "plan/proposalItinerary/scenic/history/mapLineList",
        data,
        "GET"
    );
}

/**获取剧本列表 */
export function pageQueryPlayList(data) {
    return request("plan/play/pageQueryPlayList", data, "GET");
}

/**剧本景点任务数 */
export function queryPlayPlotTaskCount(data) {
    return request("plan/play/queryPlayPlotTaskCount", data, "GET");
}

/**获取景点 */
export function scenicList(data) {
    return request("plan/scenic/scenicList", data, "GET");
}

/**根据景点获取相关任务 */
export function scenicTask(data) {
    return request("plan/scenic/scenicTask", data, "POST");
}

/**查询行程导入人员 */
export function partyTempList(data) {
    return request("plan/proposalItinerary/partyTempList", data, "GET");
}

/** 新增行程 */
export function proposalAdd(data) {
    return request("plan/proposal/add", data, "POST");
}

/**查询场馆列表 */
export function venuePage(data) {
    return request("plan/venue/venuePage", data, "GET");
}

/**场馆详情 */
export function venueDetail(data) {
    return request("plan/venue/venueDetail", data, "GET");
}

/**查询场馆预订 */
export function dateReserves(data) {
    return request("plan/venueSelected/dateReserves", data, "GET");
}

/**初始化订单 */
export function initOrder(data) {
    return request("plan/venueSelected/initOrder", data, "POST");
}

/**获取订单签名 */
export function getSign(data) {
    return request("plan/venueSelected/getSign", data, "POST");
}

/**行程支付 */
export function proposalPay(data) {
    return request("plan/proposal/pay", data, "GET");
}

/**订单完成 */
export function postOrder(data) {
    return request("plan/venueSelected/postOrder", data, "POST");
}

/**旅行订单列表 */
export function myOrder(data) {
    return request("plan/order/myOrder", data, "GET");
}

/**旅行订单详情 */
export function myOrderDetail(data) {
    return request("plan/order/myOrderDetail", data, "GET");
}

/**修改出行日期 */
export function changeTime(data) {
    return request("plan/proposal/changeTime", data, "GET");
}

/**团队任务 */
export function allGroupTask(data) {
    return request("plan/proposalItinerary/allGroupTask", data, "GET");
}

/**个人任务列表 */
export function personalTasks(data) {
    return request("plan/proposalItinerary/personalTasks", data, "GET");
}

/**个人任务添加获取景点和学员 */
export function personalTaskOption(data) {
    return request("plan/proposalItinerary/personalTaskOption", data, "GET");
}

/**添加一个个人任务 */
export function savePersonalTask(data) {
    return request("plan/proposalItinerary/savePersonalTask", data, "POST");
}

/**删除一个个人任务 */
export function deletePersonalGroupTask(data) {
    return request("plan/proposalItinerary/deletePersonalGroupTask", data, "GET");
}

/**根据景点获取任务 */
export function findTask(data) {
    return request("plan/proposalItinerary/findTask", data, "GET");
}

/**根据景点获取题目 */
export function findQuestion(data) {
    return request("plan/question/findQuestion", data, "GET");
}

/**从任务库新增一个团队任务 */
export function saveOneGroupTask(data) {
    return request("plan/proposalItinerary/saveOneGroupTask", data, "POST");
}

/**新增一个新的任务 */
export function newTask(data) {
    return request("plan/proposalItinerary/newTask", data, "POST");
}

/**删除一个团队任务 */
export function deleteGroupTask(data) {
    return request("plan/proposalItinerary/deleteGroupTask", data, "GET");
}

/**修改任务模式 */
export function setMode(data) {
    return request("plan/proposalItinerary/setMode", data, "GET");
}

/**获取方案景点任务数目 */
export function getScenicTaskCount(data) {
    return request("plan/proposalItinerary/getScenicTaskCount", data, "GET");
}

/**获取景点最大可用团队任务数目 */
export function scenicGroupTaskCount(data) {
    return request("plan/scenic/scenicGroupTaskCount", data, "POST");
}

/**设置方案景点任务数 */
export function editScenicTaskCount(data) {
    return request("plan/proposalItinerary/editScenicTaskCount", data, "POST");
}

/**申请退款 */
export function refundInput(data) {
    return request("plan/order/refundInput", data, "GET");
}

/**经典路线列表 */
export function planLinePage(data) {
    return request("plan/proposal/planLinePage", data, "GET");
}

/**路线详情 */
export function lineDetail(data) {
    return request("plan/proposalItinerary/lineDetail", data, "GET");
}

/**经典路线报名 */
export function signItinerary(data) {
    return request("plan/proposalItinerary/signItinerary", data, "GET");
}

/**上下架经典路线 */
export function upDownLine(data) {
    return request("plan/proposal/upDownLine", data, "GET");
}

/**banner列表 */
export function queryBannerList(data) {
    return request("plan/banner/queryBannerList/1/1000", data, "GET");
}

/**获取场馆培训课程 */
export function queryCourseList(dataOne, datatwo, dataThree, data) {
    return request(
        "plan/course/queryCourseList/" + dataOne + "/" + datatwo + "/" + dataThree,
        data,
        "GET"
    );
}

/**获取场馆热销商品 */
export function queryCommodityList(dataOne, datatwo, dataThree, data) {
    return request(
        "plan/commodity/queryCommodityList/" +
        dataOne +
        "/" +
        datatwo +
        "/" +
        dataThree,
        data,
        "GET"
    );
}

/**课程详情 */
export function queryCourseDetail(data, dataOne) {
    return request("plan/course/queryCourseDetail/" + data, dataOne, "GET");
}

/**课程/商品初始化订单 */
export function generateGoodsOrder(data) {
    return request("plan/course/generateGoodsOrder", data, "POST");
}

/**查询订单详情 */
export function queryOrderCourseInfo(data) {
    return request("plan/course/queryOrderCourseInfo", data, "GET");
}

/**获取核销码 */
export function gainQrcode(data) {
    return request("wxUser/login/gainQrcode", data, "GET");
}

/**商品/课程订单列表 */
export function miniCourseAndCommodityList(data) {
    return request("plan/order/miniCourseAndCommodityList", data, "GET");
}

/**查询员工对应场馆id */
export function gainVenueId(data) {
    return request("user/user/gainVenueId", data, "GET");
}

/**根据订单id查询订单信息 */
export function queryWriteOrderDetailsById(data) {
    return request("plan/order/queryWriteOrderDetailsById", data, "GET");
}

/**核销订单 */
export function cancelAfterVerificationCourse(dataOne, dataTwo, data) {
    return request(
        "plan/course/cancelAfterVerificationCourse/" + dataOne + "/" + dataTwo,
        data,
        "PUT"
    );
}

/**商品详情 */
export function queryCommodityDetail(dataOne, data) {
    return request("plan/commodity/queryCommodityDetail/" + dataOne, data, "GET");
}

/**经典路线报名列表 */
export function signItineraryList(data) {
    return request("plan/proposalItinerary/signItineraryList", data, "GET");
}

/**经典路线-根据景点id获取个人任务 */
export function scenicPersonalTaskCount(data) {
    return request("plan/scenic/scenicPersonalTaskCount", data, "POST");
}

/**编辑经典路线 */
export function updateProposal(data) {
    return request("plan/proposal/updateProposal", data, "POST");
}

/**删除方案 */
export function deleteProposal(data) {
    return request("plan/proposal/deleteProposal", data, "POST");
}

/**方案列表 */
export function proposalPage(data) {
    return request("plan/proposal/proposalPage", data, "GET");
}

/**热门景点**/
export function popular_destination(data) {
    return request("plan/scenic/hotScenic", data, "GET");
}

/**热门路线**/
export function Popular_route(data) {
    return request("plan/proposal/hotPlanLine", data, "GET");
}


/**景点详情1**/
export function ScenicSpotDetails(data) {
    return request("plan/scenic/detail", data, "GET");
}

/**线路详情 */
export function hotPlanLineDetail(data) {
    return request("plan/proposal/hotPlanLineDetail", data, "GET");
}

/**热门路线支付详情 */
export function hotPlanLinePayDetail(data) {
    return request("plan/proposal/hotPlanLinePayDetail", data, "GET");
}

/**下单 */
export function groupSharingItinerary(data) {
    return request("plan/proposalItinerary/groupSharingItinerary", data, "POST");
}


/**商铺列表 */
export function queryShop(data) {
    return request("plan/shop/queryShop", data, "GET");
}

/**商铺详情 */
export function queryShopDetails(data) {
    return request("plan/shop/queryShopDetails", data, "GET");
}

/**路线订单列表 */
export function lineOrderList(data) {
    return request("plan/order/lineOrderList", data, "GET");
}

/**订单详情 */
export function lineOrderDetail(data) {
    return request("plan/order/lineOrderDetail", data, "GET");
}

/**查询景点签到状态 */
export function historyGetSign(data) {
    return request("plan/proposalItinerary/scenic/history/getSign", data, "GET");
}

/**增加人气/热度 */
export function addHot(data) {
    return request("plan/proposal/addHot", data, "GET");
}

/**查询商品详情 */
export function querySundryInfo(dataOne, data) {
    return request("plan/pathCharge/querySundryInfo/" + dataOne, data, "GET");
}

/**初始化商品订单 */
export function sundryInitialize(data) {
    return request("plan/pathCharge/sundryInitialize", data, "GET");
}

/**根据订单号查询商品详情 */
export function querySundryOrderInfo(data) {
    return request("plan/pathCharge/querySundryOrderInfo", data, "GET");
}

/**查询是否为对应商铺核销 */
export function queryUserShopIdByPhone(data) {
    return request("plan/pathCharge/queryUserShopIdByPhone", data, "GET");
}

/**商品订单核销 */
export function cancelAfterVerification(data) {
    return request("plan/pathCharge/cancelAfterVerification", data, "GET");
}

/**查询此任务是否解锁 */
export function checkTaskUnlock(data) {
    return request("plan/proposalItinerary/scenic/history/checkTaskUnlock", data, "GET");
}

/**行程报告列表 */
export function lineReport(data) {
    return request("plan/proposal/lineReport", data, "GET");
}

/**家长中心 */
export function parentLine(data) {
    return request("plan/proposal/parentLine", data, "GET");
}

/**判断个人报告是否添加行程感悟 */
export function judgeApperception(data) {
    return request("plan/apperception/judgeApperception", data, "GET");
}

/**未读消息条数 */
export function phoneMessageCount(data) {
    return request("wxUser/messageAssemble/phoneMessageCount", data, "GET");
}

/**从景点选择任务 */
export function selectByScenic(data) {
    return request("plan/task/selectByScenic", data, "GET");
}
